//
//  ScreeningHeaderCollectionReusableView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/19.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ScreeningHeaderCollectionReusableView.h"

@implementation ScreeningHeaderCollectionReusableView

+ (NSString *)headerViewIdentifier {
    return @"ScreeningHeaderCollectionReusableView";
}

+ (instancetype)headerViewWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
    ScreeningHeaderCollectionReusableView *headerView = (ScreeningHeaderCollectionReusableView*)[collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:[ScreeningHeaderCollectionReusableView headerViewIdentifier] forIndexPath:indexPath];
    return headerView;
}

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor whiteColor];
        GLGWLabel * titleLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(10), kHeightProportion_In_iPhoneTriploid(5), kWidthProportion_In_iPhoneTriploid(50), kHeightProportion_In_iPhoneTriploid(22)) theFont:BOLDSYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:self];
        titleLabel.text = @"品类";
    }
    return self;
}

@end
